package com.yugao.fintech.antelope.auth.model.rqrs.third;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yugao.fintech.antelope.auth.oauth2.model.RegisteredClient;
import com.yugao.fintech.antelope.base.model.constants.ValidationCons;
import com.yugao.fintech.antelope.base.model.module.auth.GrantTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 获取登录二维码
 */
@Data
public class LoginQrcodeGetReq {
    @ApiModelProperty(value = "客户端id")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String clientId;

    /**
     * @see GrantTypeEnum
     */
    @ApiModelProperty(value = "授权类型")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String grantType;

    /**
     * 客户端信息
     */
    @JsonIgnore
    @JSONField(serialize = false)
    private RegisteredClient client;
}
